#include "pthreadpool.hpp"
#include "task.hpp"
#include <unistd.h>
int main()
{
    pthreadPool<calcTask> *tp = pthreadPool<calcTask>::getInstance();
    tp->run();
    while (1)
    {
        int x, y;
        char op;
        cin >> x >> op >> y;
        calcTask t(x, y, op);
        tp->push(t);
        sleep(1);
    }
    return 0;
}